package com.ruoyi.ww.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.ycl.domain.vo.BsJctzVo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 外委试验信息主业务对象 ww_bs_wwsy
 *
 * @author zyb
 * @date 2024-08-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BsWwsyBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long wwsyId;

    /**
     * 报告编号
     */
    @NotBlank(message = "报告编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String baogbh;

    /**
     * 试验类型id
     */
    @NotNull(message = "试验类型id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long syTypeId;

    /**
     * 试验室id
     */
    @NotNull(message = "试验室id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 进场台账id
     */
    private Long tzId;

    /**
     * 进场台账Vo
     */
    private BsJctzVo jctzVo;

    /**
     * 报告日期
     */
    @NotNull(message = "报告日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date baogrq;

    /**
     * 检测单位
     */
    @NotBlank(message = "检测单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jiancdw;

    /**
     * 检测内容
     */
    @NotBlank(message = "检测内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jiancnr;

    /**
     * 样品名称
     */
    @NotBlank(message = "样品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String yangpmc;

    /**
     * 委托日期
     */
//    @NotNull(message = "委托日期不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date weitrq;

    /**
     * 登记人
     */
//    @NotBlank(message = "登记人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dengjr;

    /**
     * 见证人
     */
//    @NotBlank(message = "见证人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jianzr;

    /**
     * 检测结论
     */
//    @NotBlank(message = "检测结论不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jiancjl;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String beiz;

    /**
     * 检测结果
     */
    @NotBlank(message = "检测结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reportResult;


}
